package com.zshan.clinic.database.model;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class StatDoctorRegisterDailyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public StatDoctorRegisterDailyExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andClinicIdIsNull() {
            addCriterion("clinic_id is null");
            return (Criteria) this;
        }

        public Criteria andClinicIdIsNotNull() {
            addCriterion("clinic_id is not null");
            return (Criteria) this;
        }

        public Criteria andClinicIdEqualTo(Long value) {
            addCriterion("clinic_id =", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotEqualTo(Long value) {
            addCriterion("clinic_id <>", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdGreaterThan(Long value) {
            addCriterion("clinic_id >", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdGreaterThanOrEqualTo(Long value) {
            addCriterion("clinic_id >=", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdLessThan(Long value) {
            addCriterion("clinic_id <", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdLessThanOrEqualTo(Long value) {
            addCriterion("clinic_id <=", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdIn(List<Long> values) {
            addCriterion("clinic_id in", values, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotIn(List<Long> values) {
            addCriterion("clinic_id not in", values, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdBetween(Long value1, Long value2) {
            addCriterion("clinic_id between", value1, value2, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotBetween(Long value1, Long value2) {
            addCriterion("clinic_id not between", value1, value2, "clinicId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdIsNull() {
            addCriterion("doctor_id is null");
            return (Criteria) this;
        }

        public Criteria andDoctorIdIsNotNull() {
            addCriterion("doctor_id is not null");
            return (Criteria) this;
        }

        public Criteria andDoctorIdEqualTo(Long value) {
            addCriterion("doctor_id =", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdNotEqualTo(Long value) {
            addCriterion("doctor_id <>", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdGreaterThan(Long value) {
            addCriterion("doctor_id >", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdGreaterThanOrEqualTo(Long value) {
            addCriterion("doctor_id >=", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdLessThan(Long value) {
            addCriterion("doctor_id <", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdLessThanOrEqualTo(Long value) {
            addCriterion("doctor_id <=", value, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdIn(List<Long> values) {
            addCriterion("doctor_id in", values, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdNotIn(List<Long> values) {
            addCriterion("doctor_id not in", values, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdBetween(Long value1, Long value2) {
            addCriterion("doctor_id between", value1, value2, "doctorId");
            return (Criteria) this;
        }

        public Criteria andDoctorIdNotBetween(Long value1, Long value2) {
            addCriterion("doctor_id not between", value1, value2, "doctorId");
            return (Criteria) this;
        }

        public Criteria andStatDateIsNull() {
            addCriterion("stat_date is null");
            return (Criteria) this;
        }

        public Criteria andStatDateIsNotNull() {
            addCriterion("stat_date is not null");
            return (Criteria) this;
        }

        public Criteria andStatDateEqualTo(LocalDate value) {
            addCriterion("stat_date =", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateNotEqualTo(LocalDate value) {
            addCriterion("stat_date <>", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateGreaterThan(LocalDate value) {
            addCriterion("stat_date >", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateGreaterThanOrEqualTo(LocalDate value) {
            addCriterion("stat_date >=", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateLessThan(LocalDate value) {
            addCriterion("stat_date <", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateLessThanOrEqualTo(LocalDate value) {
            addCriterion("stat_date <=", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateIn(List<LocalDate> values) {
            addCriterion("stat_date in", values, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateNotIn(List<LocalDate> values) {
            addCriterion("stat_date not in", values, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateBetween(LocalDate value1, LocalDate value2) {
            addCriterion("stat_date between", value1, value2, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateNotBetween(LocalDate value1, LocalDate value2) {
            addCriterion("stat_date not between", value1, value2, "statDate");
            return (Criteria) this;
        }

        public Criteria andReservedCountIsNull() {
            addCriterion("reserved_count is null");
            return (Criteria) this;
        }

        public Criteria andReservedCountIsNotNull() {
            addCriterion("reserved_count is not null");
            return (Criteria) this;
        }

        public Criteria andReservedCountEqualTo(Integer value) {
            addCriterion("reserved_count =", value, "reservedCount");
            return (Criteria) this;
        }

        public Criteria andReservedCountNotEqualTo(Integer value) {
            addCriterion("reserved_count <>", value, "reservedCount");
            return (Criteria) this;
        }

        public Criteria andReservedCountGreaterThan(Integer value) {
            addCriterion("reserved_count >", value, "reservedCount");
            return (Criteria) this;
        }

        public Criteria andReservedCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("reserved_count >=", value, "reservedCount");
            return (Criteria) this;
        }

        public Criteria andReservedCountLessThan(Integer value) {
            addCriterion("reserved_count <", value, "reservedCount");
            return (Criteria) this;
        }

        public Criteria andReservedCountLessThanOrEqualTo(Integer value) {
            addCriterion("reserved_count <=", value, "reservedCount");
            return (Criteria) this;
        }

        public Criteria andReservedCountIn(List<Integer> values) {
            addCriterion("reserved_count in", values, "reservedCount");
            return (Criteria) this;
        }

        public Criteria andReservedCountNotIn(List<Integer> values) {
            addCriterion("reserved_count not in", values, "reservedCount");
            return (Criteria) this;
        }

        public Criteria andReservedCountBetween(Integer value1, Integer value2) {
            addCriterion("reserved_count between", value1, value2, "reservedCount");
            return (Criteria) this;
        }

        public Criteria andReservedCountNotBetween(Integer value1, Integer value2) {
            addCriterion("reserved_count not between", value1, value2, "reservedCount");
            return (Criteria) this;
        }

        public Criteria andRegisterCountIsNull() {
            addCriterion("register_count is null");
            return (Criteria) this;
        }

        public Criteria andRegisterCountIsNotNull() {
            addCriterion("register_count is not null");
            return (Criteria) this;
        }

        public Criteria andRegisterCountEqualTo(Integer value) {
            addCriterion("register_count =", value, "registerCount");
            return (Criteria) this;
        }

        public Criteria andRegisterCountNotEqualTo(Integer value) {
            addCriterion("register_count <>", value, "registerCount");
            return (Criteria) this;
        }

        public Criteria andRegisterCountGreaterThan(Integer value) {
            addCriterion("register_count >", value, "registerCount");
            return (Criteria) this;
        }

        public Criteria andRegisterCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("register_count >=", value, "registerCount");
            return (Criteria) this;
        }

        public Criteria andRegisterCountLessThan(Integer value) {
            addCriterion("register_count <", value, "registerCount");
            return (Criteria) this;
        }

        public Criteria andRegisterCountLessThanOrEqualTo(Integer value) {
            addCriterion("register_count <=", value, "registerCount");
            return (Criteria) this;
        }

        public Criteria andRegisterCountIn(List<Integer> values) {
            addCriterion("register_count in", values, "registerCount");
            return (Criteria) this;
        }

        public Criteria andRegisterCountNotIn(List<Integer> values) {
            addCriterion("register_count not in", values, "registerCount");
            return (Criteria) this;
        }

        public Criteria andRegisterCountBetween(Integer value1, Integer value2) {
            addCriterion("register_count between", value1, value2, "registerCount");
            return (Criteria) this;
        }

        public Criteria andRegisterCountNotBetween(Integer value1, Integer value2) {
            addCriterion("register_count not between", value1, value2, "registerCount");
            return (Criteria) this;
        }

        public Criteria andCheckinCountIsNull() {
            addCriterion("checkin_count is null");
            return (Criteria) this;
        }

        public Criteria andCheckinCountIsNotNull() {
            addCriterion("checkin_count is not null");
            return (Criteria) this;
        }

        public Criteria andCheckinCountEqualTo(Integer value) {
            addCriterion("checkin_count =", value, "checkinCount");
            return (Criteria) this;
        }

        public Criteria andCheckinCountNotEqualTo(Integer value) {
            addCriterion("checkin_count <>", value, "checkinCount");
            return (Criteria) this;
        }

        public Criteria andCheckinCountGreaterThan(Integer value) {
            addCriterion("checkin_count >", value, "checkinCount");
            return (Criteria) this;
        }

        public Criteria andCheckinCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("checkin_count >=", value, "checkinCount");
            return (Criteria) this;
        }

        public Criteria andCheckinCountLessThan(Integer value) {
            addCriterion("checkin_count <", value, "checkinCount");
            return (Criteria) this;
        }

        public Criteria andCheckinCountLessThanOrEqualTo(Integer value) {
            addCriterion("checkin_count <=", value, "checkinCount");
            return (Criteria) this;
        }

        public Criteria andCheckinCountIn(List<Integer> values) {
            addCriterion("checkin_count in", values, "checkinCount");
            return (Criteria) this;
        }

        public Criteria andCheckinCountNotIn(List<Integer> values) {
            addCriterion("checkin_count not in", values, "checkinCount");
            return (Criteria) this;
        }

        public Criteria andCheckinCountBetween(Integer value1, Integer value2) {
            addCriterion("checkin_count between", value1, value2, "checkinCount");
            return (Criteria) this;
        }

        public Criteria andCheckinCountNotBetween(Integer value1, Integer value2) {
            addCriterion("checkin_count not between", value1, value2, "checkinCount");
            return (Criteria) this;
        }

        public Criteria andDiagnosedCountIsNull() {
            addCriterion("diagnosed_count is null");
            return (Criteria) this;
        }

        public Criteria andDiagnosedCountIsNotNull() {
            addCriterion("diagnosed_count is not null");
            return (Criteria) this;
        }

        public Criteria andDiagnosedCountEqualTo(Integer value) {
            addCriterion("diagnosed_count =", value, "diagnosedCount");
            return (Criteria) this;
        }

        public Criteria andDiagnosedCountNotEqualTo(Integer value) {
            addCriterion("diagnosed_count <>", value, "diagnosedCount");
            return (Criteria) this;
        }

        public Criteria andDiagnosedCountGreaterThan(Integer value) {
            addCriterion("diagnosed_count >", value, "diagnosedCount");
            return (Criteria) this;
        }

        public Criteria andDiagnosedCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("diagnosed_count >=", value, "diagnosedCount");
            return (Criteria) this;
        }

        public Criteria andDiagnosedCountLessThan(Integer value) {
            addCriterion("diagnosed_count <", value, "diagnosedCount");
            return (Criteria) this;
        }

        public Criteria andDiagnosedCountLessThanOrEqualTo(Integer value) {
            addCriterion("diagnosed_count <=", value, "diagnosedCount");
            return (Criteria) this;
        }

        public Criteria andDiagnosedCountIn(List<Integer> values) {
            addCriterion("diagnosed_count in", values, "diagnosedCount");
            return (Criteria) this;
        }

        public Criteria andDiagnosedCountNotIn(List<Integer> values) {
            addCriterion("diagnosed_count not in", values, "diagnosedCount");
            return (Criteria) this;
        }

        public Criteria andDiagnosedCountBetween(Integer value1, Integer value2) {
            addCriterion("diagnosed_count between", value1, value2, "diagnosedCount");
            return (Criteria) this;
        }

        public Criteria andDiagnosedCountNotBetween(Integer value1, Integer value2) {
            addCriterion("diagnosed_count not between", value1, value2, "diagnosedCount");
            return (Criteria) this;
        }

        public Criteria andRefundedCountIsNull() {
            addCriterion("refunded_count is null");
            return (Criteria) this;
        }

        public Criteria andRefundedCountIsNotNull() {
            addCriterion("refunded_count is not null");
            return (Criteria) this;
        }

        public Criteria andRefundedCountEqualTo(Integer value) {
            addCriterion("refunded_count =", value, "refundedCount");
            return (Criteria) this;
        }

        public Criteria andRefundedCountNotEqualTo(Integer value) {
            addCriterion("refunded_count <>", value, "refundedCount");
            return (Criteria) this;
        }

        public Criteria andRefundedCountGreaterThan(Integer value) {
            addCriterion("refunded_count >", value, "refundedCount");
            return (Criteria) this;
        }

        public Criteria andRefundedCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("refunded_count >=", value, "refundedCount");
            return (Criteria) this;
        }

        public Criteria andRefundedCountLessThan(Integer value) {
            addCriterion("refunded_count <", value, "refundedCount");
            return (Criteria) this;
        }

        public Criteria andRefundedCountLessThanOrEqualTo(Integer value) {
            addCriterion("refunded_count <=", value, "refundedCount");
            return (Criteria) this;
        }

        public Criteria andRefundedCountIn(List<Integer> values) {
            addCriterion("refunded_count in", values, "refundedCount");
            return (Criteria) this;
        }

        public Criteria andRefundedCountNotIn(List<Integer> values) {
            addCriterion("refunded_count not in", values, "refundedCount");
            return (Criteria) this;
        }

        public Criteria andRefundedCountBetween(Integer value1, Integer value2) {
            addCriterion("refunded_count between", value1, value2, "refundedCount");
            return (Criteria) this;
        }

        public Criteria andRefundedCountNotBetween(Integer value1, Integer value2) {
            addCriterion("refunded_count not between", value1, value2, "refundedCount");
            return (Criteria) this;
        }

        public Criteria andExpiredCountIsNull() {
            addCriterion("expired_count is null");
            return (Criteria) this;
        }

        public Criteria andExpiredCountIsNotNull() {
            addCriterion("expired_count is not null");
            return (Criteria) this;
        }

        public Criteria andExpiredCountEqualTo(Integer value) {
            addCriterion("expired_count =", value, "expiredCount");
            return (Criteria) this;
        }

        public Criteria andExpiredCountNotEqualTo(Integer value) {
            addCriterion("expired_count <>", value, "expiredCount");
            return (Criteria) this;
        }

        public Criteria andExpiredCountGreaterThan(Integer value) {
            addCriterion("expired_count >", value, "expiredCount");
            return (Criteria) this;
        }

        public Criteria andExpiredCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("expired_count >=", value, "expiredCount");
            return (Criteria) this;
        }

        public Criteria andExpiredCountLessThan(Integer value) {
            addCriterion("expired_count <", value, "expiredCount");
            return (Criteria) this;
        }

        public Criteria andExpiredCountLessThanOrEqualTo(Integer value) {
            addCriterion("expired_count <=", value, "expiredCount");
            return (Criteria) this;
        }

        public Criteria andExpiredCountIn(List<Integer> values) {
            addCriterion("expired_count in", values, "expiredCount");
            return (Criteria) this;
        }

        public Criteria andExpiredCountNotIn(List<Integer> values) {
            addCriterion("expired_count not in", values, "expiredCount");
            return (Criteria) this;
        }

        public Criteria andExpiredCountBetween(Integer value1, Integer value2) {
            addCriterion("expired_count between", value1, value2, "expiredCount");
            return (Criteria) this;
        }

        public Criteria andExpiredCountNotBetween(Integer value1, Integer value2) {
            addCriterion("expired_count not between", value1, value2, "expiredCount");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}